package com.lino.design;

/**
 * @description: 单点登录拦截实现类
 * @author: lingjian
 * @createDate: 2022/12/22 10:12
 */
public class SsoInterceptor implements HandleInterceptor {
    @Override
    public boolean preHandle(String request, String response, Object handler) {
        // 模拟获取cookie
        String ticket = request.substring(1, 8);
        // 模拟校验
        return ticket.equals("success");
    }
}
